package com.atguigu.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    // 核心线程数
    private Integer coreSize;

    // 最大线程数
    private Integer maxSize;

    // 空闲线程存活时间
    private Integer keepAliveTime;
}
